<include file="public:header" />
<!--拜访列表-->
<div class="pad_lr_10" >
    <form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
        <tr>
            <td>
            <div class="explain_col">
                <input type="hidden" name="g" value="admin" />
                <input type="hidden" name="m" value="visit" />
                <input type="hidden" name="a" value="index" />
                <input type="hidden" name="menuid" value="{$menuid}" />
                拜访日期 ：
                <input type="text" name="time_start" id="time_start" class="date" size="12" value="{$search.time_start}">
                -
                <input type="text" name="time_end" id="time_end" class="date" size="12" value="{$search.time_end}">
                &nbsp;&nbsp;所属厅店：
                <select class="J_cate_select mr10" data-pid="0" data-uri="{:U('region/ajax_getchilds',
                array('max_level'=>4,'type'=>'store'))}" data-selected="{$search.selected_ids}"></select>
                <input type="hidden" name="cateId" id="J_cate_id" value="{$search.cateId}" />
               
               
                <input type="submit" name="search" class="btn" value="{:L('search')}" />
            </div>
            </td>
        </tr>
        </tbody>
    </table>
    </form>

    <div class="J_tablelist table_list" data-acturi="{:U('visit/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th width="30">日期</th>
                
                <th align="center">地区</th>
               
                <th width=150><span data-tdtype="order_by" data-field="storeId">服务厅</span></th>
				<th width=150>亚信编码</th>               
                <th width=150>渠道</th>
                <th width=60><span data-tdtype="order_by" data-field="userId">填写人</span></th>
                <th width=60><span data-tdtype="order_by" data-field="createTime">到访时间</span></th>
                
                <th width="80">{:L('operations_manage')}</th>
            </tr>
        </thead>
        <tbody>
            <volist name="list" id="val" >
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                <td align="center">{$val.date}</td>
                <td align="center"><b>{:getRegionName($val['regionId'],1)}</b></td>
				<td align="center"><b>{$val.name}</b></td>
                <td align="center">{$val.ctms}</td>
                <td align="center">{:L('store_channel'.$val['channel'])}</td>
                <td align="center">{$val.realName}</td>
                <td align="center" width="120">
                <if condition="$val['createTime']">
                    {$val.createTime|date='Y-m-d H:i:s',###}
                    <else />
                    <b>未开始拜访</b>
                </if>
                </td>
                
                <td align="center"><a href="{:u('visit/show', array('id'=>$val['id'], 'menuid'=>$menuid))}">查看详情</a> </td>
            </tr>
            </volist>
        </tbody>
    </table>

    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
  
        <div id="pages">{$page}</div>
    </div>

    </div>
</div>
<include file="public:footer" />
<link rel="stylesheet" type="text/css" href="__STATIC__/js/calendar/calendar-blue.css"/>
<script src="__STATIC__/js/calendar/calendar.js"></script>
<script>
$('.J_cate_select').cate_select({top_option:lang.all});
Calendar.setup({
    inputField : "time_start",
    ifFormat   : "%Y-%m-%d",
    showsTime  : false,
    timeFormat : "24"
});
Calendar.setup({
    inputField : "time_end",
    ifFormat   : "%Y-%m-%d",
    showsTime  : false,
    timeFormat : "24"
});
</script>
</body>
</html>
